package com.fan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fan.entity.Chapter;
import com.fan.utils.CommonResults;
import com.sixth.until.CommonResult;

/**
 * @program: self-tui-education
 * @description:
 * @author: 老范
 * @create: 2022-04-28 20:43
 **/

public interface ChapterService extends IService<Chapter> {

    //根据课程id查询章节信息
    CommonResult findChapterByCourseId(String courseId);

    CommonResults deleteChapterWithCourseId(Chapter chapter);

    //根据课程id查询章节信息
    CommonResults findChapterById(String id);

    CommonResults insertChapter(Chapter chapter);
}
